/**
 * 
 */
package org.rk.core.common.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author cavion
 * @类描述：数据集实体
 * 2016年1月27日 下午4:27:36
 */
public class QueryData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3595735647274929910L;
	private List<Map<String,Object>> queryBeanList;
	private int total;
	
	public QueryData(){
		queryBeanList=new ArrayList<Map<String,Object>>();
	}
	
	public void addBean(Map<String,Object> dataMap){
		queryBeanList.add(dataMap);
	}
	public int getNum(){
		return queryBeanList.size();
	}
	public Map<String,Object> get(int i){
		return queryBeanList.get(i);
	}
	public void removeBean(int i){
		queryBeanList.remove(i);
	}
	
	
	
	
	public List<Map<String,Object>> getQueryBeanList() {
		return queryBeanList;
	}

	public void setQueryBeanList(List<Map<String,Object>> queryBeanList) {
		this.queryBeanList = queryBeanList;
		this.total=queryBeanList.size();
	}

	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	
}
